package com.ugoodtech.mdcc.web.service;

import com.ugoodtech.mdcc.core.domain.Department;
import com.ugoodtech.mdcc.core.domain.User;
import com.ugoodtech.mdcc.web.pojo.vo.AllDepartmentListVO;

import java.util.List;

public interface DepartmentService {


    List<Department> getFirstDepartments();

    List<Department> getChildDepartments(Long parentId);

    /**
     * 根据部门类型，获取所有内部部门或经销商，内部部门父子部门都要，子部门以：销售部-大光明 这样拼接展示
     * 添加用户接口用到
     * */
    List<AllDepartmentListVO> getAllDepartmentsList(Integer departmentType, String departmentName, User currentUser);
}
